#####################################################################
# @file Makefile
# @brief My Makefile for resolving bugs in makefiles
#
# @version 0.4
# @author easycat
#####################################################################
# Include your own makefiles
# include def.mk

CC   = g++ -g
COMPILE.C  = $(CC) -c
VPATH   = ../pub
CXXFLAGS  =  -lgcc_s 
LDFLAGS   = `sdl-config --cflags --libs` -lSDL_gfx 
MAKEEXE   = $(CC) $(LDFLAGS)

OBJ   =  map.o teris.o  main.o
#下面设置编译出的exe名字
EXE   = teris

all: $(EXE)

$(EXE): ${OBJ}
	$(MAKEEXE) $^ -o $@ 
%.o:   %.cpp
	$(COMPILE.C) $< -o $@
clean:     
	rm -f *.o $(EXE) core 
